package test;


import anaydis.sort.gui.SorterListener;

public class BenchMark implements SorterListener {

    private int nGreaters = 0;
    private int nSwap = 0;
    private int nEquals = 0;

    public void greater(int i, int i1) {
        nGreaters++;
    }

    public void equals(int i, int i1) {
        nEquals++;
    }

    public void swap(int i, int i1) {
        nSwap++;
    }

    public void box(int i, int i1) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void copy(int i, int i1, boolean b) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public int getnGreaters() {
        return nGreaters;
    }

    public int getnSwap() {
        return nSwap;
    }

    public int getnEquals() {
        return nEquals;
    }

    public int getComparations() {
        return nGreaters + nEquals;
    }

    public void resetAll() {
        nGreaters = nSwap = nEquals = 0;
    }
}
